package Game;
import java.awt.Graphics;
import java.awt.Image;
import java.util.ArrayList;


public class Sprite {
	private ArrayList<Image> imgArray;
	private int ID;
	public Sprite(ArrayList<Image> image,int ID){
		imgArray=image;
		this.ID=ID;
	}
	public int getWidth(){
		return imgArray.get(0).getWidth(null);
	}
	public int getHeight(){
		return imgArray.get(0).getHeight(null);
	}
	public int getID(){
		return ID;
	}
	public int getSize(){
		return imgArray.size();
	}
	public void Draw(Graphics g,int x,int y,int index){
		g.drawImage(imgArray.get(index),x,y,null);
	}
}
